package com.gupt.youhd.service;/*
@author name
@data 2023/4/21-14:54
*/


import com.gupt.youhd.entity.School;
import com.gupt.youhd.entity.User;
import com.gupt.youhd.qo.LoginQo;
import com.gupt.youhd.qo.RegisterQo;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface LoginService {


    //校验验证是否通过
    Map login(LoginQo qo);

    //查询用户是否存在
    User retrieveUserByUsername(User user);

    //查询用户是否有注册该学校
    boolean retrieveStuByUsername(String username,String SchoolName);

    //根据id查询学校
    School retrieveSchoolBySchoolId(int schoolId);

    //退出登录成功
    void logout(HttpServletRequest request);

    //忘记密码请求
    Map<String,String> getCaptcha(String userName);

    void getCaptchaNext(String uuid,String code);

    int update(RegisterQo qo);
}
